<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>图书管理系统</title>

    <!-- Bootstrap -->
    <link href="bs/css/bootstrap.min.css" rel="stylesheet">
    <link href="bs/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="lib/css/library.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- 导航条 -->

    <nav class="navbar navbar-default">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">WBC图书管理系统v1.0</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">图书管理</a></li>
            <li><a href="#">借书/还书</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">Separated link</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
         
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Link</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">Separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>

    <!-- 导航条 -->

    <div class="container">
        <div class="row mb-10">
        <div class="col-lg-8">
            <div class="btn-group">
                <button id="addBooksBtn" type="button" class="btn btn-default">新增图书</button>
                <button type="button" class="btn btn-primary">图书列表</button>
                <button id="modiBtn" type="button" class="btn btn-warning" disabled>修改图书</button>
                <button id="delBtn" type="button" class="btn btn-danger" disabled>删除图书</button>
            </div>
        </div>
            
        <div class="col-lg-4">
            <div class="input-group">
                <input id="searchIpt" type="text" class="form-control" placeholder="请输入书名">
                <span class="input-group-btn">
                <button id="searchBtn" class="btn btn-danger" type="button">搜索</button>
                </span>
            </div><!-- /input-group -->
        </div><!-- /.col-lg-6 -->
    </div><!-- /.row -->
    </div>

    <table id="Table" class="table table-striped table-bordered table-hover mb-0">
        <thead>
          <tr>
            <th class="w-30"><input id="first-check-box" type="checkbox"></th>
            <th>书名</th>
            <th>作者</th>
            <th>出版社</th>
            <th>定价</th>
            <th>出版日期</th>
            <th>类别</th>
            <th>上架/下架</th>
            <th>借出状态</th>
          </tr>
        </thead>
        <tbody> </tbody>
    </table>
    
    <nav>
      <div class="page-jumper">
          <input id="jumpIpt" type="text" value="1">
          <button id="jumpBtn">GO</button>
      </div>
      <ul id="pagingUl" class="pagination pull-right right-align">
        <!-- <li>
          <a href="#" aria-label="Previous">
            <span aria-hidden="true">&laquo;</span>
          </a>
        </li> -->
        <!-- <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li> -->
        <!-- <li>
          <a href="#" aria-label="Next">
            <span aria-hidden="true">&raquo;</span>
          </a>
        </li> -->
      </ul>
    </nav>
      <!-- 对话框 -->

      <!-- 表单 -->

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">新增图书</h4>
                </div>
                <div class="modal-body">
                    <!-- 表单  -->  
                    <form id="booksForm" class="form-horizontal">
                     <input type="hidden" id="bookId">
                      <div class="form-group has-success has-feedback">
                        <label class="control-label col-sm-3">书名：</label>
                        <div class="col-sm-9">
                          <input  id="name" type="text" class="form-control" id="inputSuccess3" aria-describedby="inputSuccess3Status">
                          <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                          <span id="inputSuccess3Status" class="sr-only">(success)</span>
                        </div>
                      </div>
                      <div class="form-group has-success has-feedback">
                        <label class="control-label col-sm-3" >作者：</label>
                        <div class="col-sm-4">
                          <div class="input-group">
                            <input id="author" type="text" class="form-control" id="inputGroupSuccess2" aria-describedby="inputGroupSuccess2Status">
                          </div>
                          <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                          <span id="inputGroupSuccess2Status" class="sr-only">(success)</span>
                        </div>
                      </div>
                      <div class="form-group has-success has-feedback">
                        <label class="control-label col-sm-3">出版社：</label>
                        <div class="col-sm-9">
                          <input id="publisher" type="text" class="form-control" id="inputSuccess3" aria-describedby="inputSuccess3Status">
                          <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                          <span id="inputSuccess3Status" class="sr-only">(success)</span>
                        </div>
                      </div>
                      <div class="form-group has-success has-feedback">
                        <label class="control-label col-sm-3">出版日期：</label>
                        <div class="col-sm-4">
                          <input id="p_date" type="text" class="form-control" id="inputSuccess3" aria-describedby="inputSuccess3Status">
                          <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                          <span id="inputSuccess3Status" class="sr-only">(success)</span>
                        </div>
                      </div>

                      <div class="form-group has-success has-feedback">
                        <label class="control-label col-sm-3">定价</label>
                        <div class="col-sm-4">
                          <input id="price" type="text" class="form-control" id="inputSuccess3" aria-describedby="inputSuccess3Status">
                          <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
                          <span id="inputSuccess3Status" class="sr-only">(success)</span>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label pl-0">分类：</label>
                        <div class="col-sm-10">
                          <select id="classify" class="form-control">
                            <option value="0">请选择</option>
                          </select>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label pl-0">上架状态：</label>
                        <div class="col-sm-10">
                          <label class="radio-inline">
                            <input id="shangjia" type="radio" name="status" value="1" checked> 上架
                          </label>
                          <label class="radio-inline">
                            <input id="xiajia" type="radio" name="status" value="0"> 下架
                          </label>
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="col-sm-2 control-label pl-0">借出状态：</label>
                        <div class="col-sm-10">
                          <label class="radio-inline">
                            <input id="weijiechu" type="radio" name="b_status" value="0" checked> 未借出
                          </label>
                          <label class="radio-inline">
                            <input id="yijiechu" type="radio" name="b_status" value="1"> 已借出
                          </label>
                        </div>
                      </div>
                    </form>  

                    <!-- 表单  -->   

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button id="bcrkBtn" type="button" class="btn btn-primary w-110">保存并入库</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 对话框 -->

    <div ng-include="inc/form.html"></div>
    
    <!-- loading -->
    <div class="masker-wp">
      <div class="masker"></div>
      <div class="loading">
        努力加载中...
      </div>
    </div>
    <!-- loading -->



    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="bs/jquery-1.11.3.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="bs/js/bootstrap.min.js"></script>
    <script src="bs/underscore-min.js"></script>
    <script src="bs/js/bootstrap-datetimepicker.min.js"></script>
    <script src="bs/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="lib/js/library.js"></script>
  </body>
</html>